home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / AppleScript / Development Tools / Sample Code / 7Edit 3.1 / Sources / SVAEGetData.h < prev    next >
Encoding:
Text File  |  1995-11-20  |  1.0 KB  |  36 lines  |  [TEXT/CWIE]

  1. // SVAEGetData.h
  2. //
  3. // 7Edit 3.1d1. Original version by Jon Lansdell and Nigel Humphreys.
  4. // 3.1 updates by Greg Sutton.
  5. // ©Apple Computer Inc 1995, all rights reserved.
  6.  
  7. #ifndef __SVAEGETDATA__
  8. #define __SVAEGETDATA__
  9.  
  10. #include <AppleEvents.h>
  11. #include <AEObjects.h>
  12. #include <AERegistry.h>
  13.  
  14.  
  15. #include "SVToken.h"
  16.  
  17.  
  18. pascal OSErr    DoGetData(const AppleEvent    *theAppleEvent,
  19.                                 AppleEvent    *reply,
  20.                                 long        handlerRefCon);
  21.  
  22. pascal OSErr    DoGetDataSize(const AppleEvent    *theAppleEvent,
  23.                                     AppleEvent    *reply,
  24.                                     long        handlerRefCon);
  25.  
  26. OSErr            HandleGetData(AEDesc *theObj, AEDesc *dataDesc);
  27.  
  28. OSErr             GetTextProperty(const AEDesc *theTokenDesc, AEDesc *dataDesc);
  29. OSErr            GetWindowProperty(const AEDesc *theWPTokenObj, AEDesc *dataDesc);
  30. OSErr            GetApplicationProperty(const AEDesc *theObjToken, AEDesc *result);
  31. OSErr            GetMenuProperty(const AEDesc *theObjToken, AEDesc *dataDesc);
  32. OSErr            GetMenuItemProperty(const AEDesc *theObjToken, AEDesc *dataDesc);
  33.  
  34. OSErr            GetTextTextProperty(TextToken* theToken, AEDesc *dataDesc);
  35. #endif
  36.